<?php
//filename : module/SanAuthWithDbSaveHandler/view/san-auth-with-db-save-handler/auth/index.phtml
$title = 'Đăng nhập';
$this->headTitle($title);
?>


<div class="login_form">
        <h1><?php echo $this->escapeHtml($title); ?></h1>
        <div class="login_body">
            <?php 
				$form = $this->form;
				$form->setAttribute('action', $this->url(
					'auth'
				));
				$form->prepare();
 				echo $this->form()->openTag($form); ?>
                <table>
                    <tr>
                        <td ><?php echo $this->formRow($form->get('username')) . PHP_EOL; ?></td>
                        <td rowspan="4"><div class="if">Nếu bạn chưa có tài khoản, <p>bấm vào "Đăng ký" để tạo tài khoản</div> <a href="<?php echo $this->url('auth',array('action'=>'register')) ?>"><div class="dk"></div></a></td>
                    </tr>
                    <tr>
                        <td ><?php echo $this->formRow($form->get('password')) . PHP_EOL; ?> </td>
                    </tr>
                    <tr>
                    <td>
                        <center><?php echo "<br>".$this->formRow($form->get('Loginsubmit')) . PHP_EOL; ?></center>
                    </td>
                    </tr>
                    <tr>
                        <td><input type="checkbox" name="ghinho" value="1" /> Ghi nhớ
                        <span class="rm"><a href="<?php echo $this->url('auth',array('action'=>'fogot')) ?>"><?php echo $this->translate('Quên mật khẩu') ?></a></span></td>
                        
                    </tr>
                    
                </table>
            <?php echo $this->form()->closeTag(); ?>
            </div>
            <div id="error" class="error"><?php echo $this->error; ?></div>
</div>
